const fs = require('fs')
const process = require('process')

// const data = fs.readFileSync('./笑看风云.mp4')
// fs.writeFileSync('./笑看风云2.mp4', data)
// console.log(process.memoryUsage())

const rs = fs.createReadStream('./笑看风云.mp4')
const ws = fs.createWriteStream('./笑看风云5.mp4')
// rs.on('data', (chunk) => {
//   ws.write(chunk)
// })
// rs.on('end', () => {
//   console.log(process.memoryUsage())
// })
rs.pipe(ws)
